<?php

use think\facade\Route;

// 系统
Route::rule('getLocation', 'system/location', 'GET')->allowCrossDomain();
Route::rule('getRecommend', 'system/recommend', 'GET')->allowCrossDomain();
Route::rule('getSystemList', 'system/getList', 'GET')->allowCrossDomain();
Route::rule('getSystemOne', 'system/getOne', 'GET')->allowCrossDomain();

// Banner
Route::rule('getBanner', 'banner/index', 'GET')->allowCrossDomain();

// 导航
Route::rule('getNav', 'nav/index', 'GET')->allowCrossDomain();

// 社区动态
Route::rule('getActiveList', 'active/getList', 'GET')->allowCrossDomain();
Route::rule('getActiveOne', 'active/getOne', 'GET')->allowCrossDomain();

// 用户中心
Route::rule('checkToken', 'webLogin/checkToken', 'GET')->allowCrossDomain();
Route::rule('login', 'user/login', 'GET')->allowCrossDomain();
Route::rule('getUserInfo', 'user/getInfo', 'GET')->allowCrossDomain();
Route::rule('setUserInfo', 'user/setInfo', 'POST')->allowCrossDomain();

// 投诉建议
Route::rule('addSuggest', 'suggest/add', 'POST')->allowCrossDomain();

// 办事指南分类
Route::rule('getGuideType', 'guideType/index', 'GET')->allowCrossDomain();

// 办事指南
Route::rule('getGuideList', 'guide/getList', 'GET')->allowCrossDomain();

// 咨询分类
Route::rule('getSeekType', 'seekType/index', 'GET')->allowCrossDomain();

// 咨询
Route::rule('addSeek', 'seek/add', 'POST')->allowCrossDomain();

// 预订
Route::rule('addBook', 'book/add', 'POST')->allowCrossDomain();

// 网格
Route::rule('getGridList', 'grid/getList', 'GET')->allowCrossDomain();
Route::rule('getGridOne', 'grid/getOne', 'GET')->allowCrossDomain();

// 两委
Route::rule('getOfficeList', 'office/getList', 'GET')->allowCrossDomain();

// 党建分类
Route::rule('getPartyType', 'partyType/index', 'GET')->allowCrossDomain();

// 党建
Route::rule('getPartyList', 'party/getList', 'GET')->allowCrossDomain();
Route::rule('getPartyOne', 'party/getOne', 'GET')->allowCrossDomain();

// 房屋租卖
Route::rule('getTenancyList', 'tenancy/getList', 'GET')->allowCrossDomain();
Route::rule('getTenancyOne', 'tenancy/getOne', 'GET')->allowCrossDomain();
// 微信支付结果通知
Route::rule('pay/wechatNotifyByPackagePay', 'pay/wechatNotifyByPackagePay', 'POST')->allowCrossDomain();
Route::rule('user/:name', 'User/:name', 'POST')->allowCrossDomain();
